package com.haitai.gas.integration.poi.policy.index;

import com.deepoove.poi.render.RenderContext;
import com.haitai.gas.integration.poi.policy.AbsIndexRenderPolicy;
import com.haitai.gas.integration.poi.vo.IndexVo;
import org.apache.poi.xwpf.usermodel.*;

public class IndexRenderPolicy1 extends AbsIndexRenderPolicy {
    @Override
    public void doRender(RenderContext<IndexVo> renderContext, XWPFDocument xwpfDocument) {
            addTitle(xwpfDocument, "报告编号：GDSA-QT-01791");
//        int index = getIndexOfFun(renderContext);
//
//        IndexVo thing = renderContext.getThing();
//        addNumber(xwpfDocument,  index, "报告编号：GDSA-QT-01791");
//        addMiniTitle(xwpfDocument, "报告编号：GDSA-QT-01791");
//        addBreak(xwpfDocument, 1);
//        genTitle(xwpfDocument, thing.mainTitle);
//        genTitle(xwpfDocument, thing.secondTitle);
//        addBreak(xwpfDocument, 12);
//        addProInfo(xwpfDocument, "项目名称：", "东莞市厚街镇桥头社区陈厚权出租屋");
//        addProInfo(xwpfDocument, "项目地址：", "东莞市厚街镇桥头社区祠边新村六巷3");
//        addProInfo(xwpfDocument, "委托单位：", "东莞市迈启航物联科技有限公司");
//        addProInfo(xwpfDocument, "检测单位：", "广东施安消防检测有限公司");
//
//        addBreak(xwpfDocument, 1);
//        addMark(xwpfDocument, "检测单位地址：东莞市东城区主山上三杞工业大道立洲科技园1号楼3F");
//        addMark(xwpfDocument, "电 话：0769-22268119\t传 真：0769-22268119");
    }


}
